//
//  Teacher
//
//  Created by 洋 耿 on 15/7/2.
//  Copyright (c) 2015年 ZengYuan. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AFNetworking.h>

@interface AWHttpTool : NSObject
+ (AFHTTPRequestOperation*)get:(NSString *)url params:(NSDictionary *)params success:(void (^)(id json))success failure:(void (^)(NSError *error))failure;

+ (AFHTTPRequestOperation*)post:(NSString *)url params:(NSDictionary *)params success:(void (^)(id json))success failure:(void (^)(NSError *error))failure;

/**
 *  取消所有当前请求
 */
+ (void)cancelRequest;
@end
